Optimal. Leaf size=82 \[ -\frac{A b-a B}{b (a+b x) (b d-a e)}+\frac{\log (a+b x) (B d-A e)}{(b d-a e)^2}-\frac{(B d-A e) \log (d+e x)}{(b d-a e)^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.143066, antiderivative size = 82, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.065 \[ -\frac{A b-a B}{b (a+b x) (b d-a e)}+\frac{\log (a+b x) (B d-A e)}{(b d-a e)^2}-\frac{(B d-A e) \log (d+e x)}{(b d-a e)^2} \]
Antiderivative was successfully verified.
[In] Int[(A + B*x)/((d + e*x)*(a^2 + 2*a*b*x + b^2*x^2)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 43.8377, size = 63, normalized size = 0.77 \[ - \frac{\left (A e - B d\right ) \log{\left (a + b x \right )}}{\left (a e - b d\right )^{2}} + \frac{\left (A e - B d\right ) \log{\left (d + e x \right )}}{\left (a e - b d\right )^{2}} + \frac{A b - B a}{b \left (a + b x\right ) \left (a e - b d\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)/(e*x+d)/(b**2*x**2+2*a*b*x+a**2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.103756, size = 69, normalized size = 0.84 \[ \frac{\frac{(a B-A b) (b d-a e)}{b (a+b x)}+\log (a+b x) (B d-A e)+(A e-B d) \log (d+e x)}{(b d-a e)^2} \]
Antiderivative was successfully verified.
[In] Integrate[(A + B*x)/((d + e*x)*(a^2 + 2*a*b*x + b^2*x^2)),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.017, size = 123, normalized size = 1.5 \[{\frac{A}{ \left ( ae-bd \right ) \left ( bx+a \right ) }}-{\frac{Ba}{b \left ( ae-bd \right ) \left ( bx+a \right ) }}-{\frac{\ln \left ( bx+a \right ) Ae}{ \left ( ae-bd \right ) ^{2}}}+{\frac{\ln \left ( bx+a \right ) Bd}{ \left ( ae-bd \right ) ^{2}}}+{\frac{\ln \left ( ex+d \right ) Ae}{ \left ( ae-bd \right ) ^{2}}}-{\frac{\ln \left ( ex+d \right ) Bd}{ \left ( ae-bd \right ) ^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)/(e*x+d)/(b^2*x^2+2*a*b*x+a^2),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.700676, size = 159, normalized size = 1.94 \[ \frac{{\left (B d - A e\right )} \log \left (b x + a\right )}{b^{2} d^{2} - 2 \, a b d e + a^{2} e^{2}} - \frac{{\left (B d - A e\right )} \log \left (e x + d\right )}{b^{2} d^{2} - 2 \, a b d e + a^{2} e^{2}} + \frac{B a - A b}{a b^{2} d - a^{2} b e +{\left (b^{3} d - a b^{2} e\right )} x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b^2*x^2 + 2*a*b*x + a^2)*(e*x + d)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.284468, size = 212, normalized size = 2.59 \[ \frac{{\left (B a b - A b^{2}\right )} d -{\left (B a^{2} - A a b\right )} e +{\left (B a b d - A a b e +{\left (B b^{2} d - A b^{2} e\right )} x\right )} \log \left (b x + a\right ) -{\left (B a b d - A a b e +{\left (B b^{2} d - A b^{2} e\right )} x\right )} \log \left (e x + d\right )}{a b^{3} d^{2} - 2 \, a^{2} b^{2} d e + a^{3} b e^{2} +{\left (b^{4} d^{2} - 2 \, a b^{3} d e + a^{2} b^{2} e^{2}\right )} x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b^2*x^2 + 2*a*b*x + a^2)*(e*x + d)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 4.79806, size = 355, normalized size = 4.33 \[ - \frac{- A b + B a}{a^{2} b e - a b^{2} d + x \left (a b^{2} e - b^{3} d\right )} - \frac{\left (- A e + B d\right ) \log{\left (x + \frac{- A a e^{2} - A b d e + B a d e + B b d^{2} - \frac{a^{3} e^{3} \left (- A e + B d\right )}{\left (a e - b d\right )^{2}} + \frac{3 a^{2} b d e^{2} \left (- A e + B d\right )}{\left (a e - b d\right )^{2}} - \frac{3 a b^{2} d^{2} e \left (- A e + B d\right )}{\left (a e - b d\right )^{2}} + \frac{b^{3} d^{3} \left (- A e + B d\right )}{\left (a e - b d\right )^{2}}}{- 2 A b e^{2} + 2 B b d e} \right )}}{\left (a e - b d\right )^{2}} + \frac{\left (- A e + B d\right ) \log{\left (x + \frac{- A a e^{2} - A b d e + B a d e + B b d^{2} + \frac{a^{3} e^{3} \left (- A e + B d\right )}{\left (a e - b d\right )^{2}} - \frac{3 a^{2} b d e^{2} \left (- A e + B d\right )}{\left (a e - b d\right )^{2}} + \frac{3 a b^{2} d^{2} e \left (- A e + B d\right )}{\left (a e - b d\right )^{2}} - \frac{b^{3} d^{3} \left (- A e + B d\right )}{\left (a e - b d\right )^{2}}}{- 2 A b e^{2} + 2 B b d e} \right )}}{\left (a e - b d\right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)/(e*x+d)/(b**2*x**2+2*a*b*x+a**2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.320909, size = 190, normalized size = 2.32 \[ \frac{{\left (B b d - A b e\right )}{\rm ln}\left ({\left | b x + a \right |}\right )}{b^{3} d^{2} - 2 \, a b^{2} d e + a^{2} b e^{2}} - \frac{{\left (B d e - A e^{2}\right )}{\rm ln}\left ({\left | x e + d \right |}\right )}{b^{2} d^{2} e - 2 \, a b d e^{2} + a^{2} e^{3}} + \frac{B a b d - A b^{2} d - B a^{2} e + A a b e}{{\left (b d - a e\right )}^{2}{\left (b x + a\right )} b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b^2*x^2 + 2*a*b*x + a^2)*(e*x + d)),x, algorithm="giac")
[Out]